import request from '@/utils/request'

export const droneTypeService = {
  // 获取无人机类型列表
  getDroneTypes(params) {
    return request({
      url: '/drone-types',
      method: 'get',
      params
    })
  },
  
  // 获取无人机类型详情
  getDroneTypeDetail(id) {
    return request({
      url: `/drone-types/${id}`,
      method: 'get'
    })
  },
  
  // 创建无人机类型
  createDroneType(data) {
    return request({
      url: '/drone-types',
      method: 'post',
      data
    })
  },
  
  // 更新无人机类型
  updateDroneType(id, data) {
    return request({
      url: `/drone-types/${id}`,
      method: 'put',
      data
    })
  },
  
  // 删除无人机类型
  deleteDroneType(id) {
    return request({
      url: `/drone-types/${id}`,
      method: 'delete'
    })
  },
  
  // 获取无人机类型选项
  getDroneTypeOptions() {
    return request({
      url: '/drone-types/options',
      method: 'get'
    })
  }
}